﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Handrise.CDCable.Business
{
    /// <summary>
    /// 缺陷
    /// </summary>
    [Serializable]
    [EntityMapping(ListName = "mtdFlawinfos", EntityName = "MtdFlawinfoData", DataType = 1, UploadListName = "mtdFlawinfoList", UploadEntityName = "MtdFlawinfoData")]
    public class Flaw
    {
        /// <summary>
        /// 缺陷ID
        /// </summary>
        [EntityMapping(ColumnName = "fid",UploadColumnName = "fid")]
        public string FlawID { get; set; }

        /// <summary>
        /// 巡视设备ID
        /// </summary>
        public string PlanDeviceID { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        [EntityMapping(ColumnName = "feqpid",UploadColumnName = "feqpid")]
        public string DeviceID { get; set; }

        /// <summary>
        /// 缺陷标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [EntityMapping(ColumnName = "fdevclassname",UploadColumnName = "fdevclassname")]
        public string DeviceName { get; set; }

        /// <summary>
        /// 设备大类
        /// </summary>
        [EntityMapping(ColumnName = "devtype", UploadColumnName = "devtype")]
        public string DeviceLargeType { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        [EntityMapping(ColumnName = "fdevclasstype", UploadColumnName = "fdevclasstype")]
        public string DeviceType { get; set; }

        /// <summary>
        /// 缺陷现象
        /// </summary>
        [EntityMapping(ColumnName = "flawphenomenon",UploadColumnName = "flawphenomenon")]
        public string Phenomenon { get; set; }

        /// <summary>
        /// 缺陷类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 缺陷级别
        /// </summary>
        [EntityMapping(ColumnName = "flawdegree",UploadColumnName = "flawdegree")]
        public string Level { get; set; }


        /// <summary>
        /// 缺陷来源
        /// </summary>
        public string Source { get; set; }

        /// <summary>
        /// 发现人
        /// </summary>
        [EntityMapping(ColumnName = "discoverer",UploadColumnName = "discoverer")]
        public string DisCoverer { get; set; }

        /// <summary>
        /// 发现时间
        /// </summary>
        [EntityMapping(ColumnName = "discoverydate", UploadColumnName = "discoverydate")]
        public DateTime? DisCoverDateTime { get; set; }

        /// <summary>
        /// 缺陷部位
        /// </summary>
        [EntityMapping(ColumnName = "flawpart",UploadColumnName = "flawpart")]
        public string Part { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [EntityMapping(ColumnName = "address",UploadColumnName = "address")]
        public string Address { get; set; }

        /// <summary>
        /// 处理状态
        /// </summary>
        [EntityMapping(ColumnName = "fexcutestatus",UploadColumnName = "fexcutestatus")]
        public string DealState { get; set; }

        /// <summary>
        /// 驳回理由
        /// </summary>
        [EntityMapping(ColumnName = "treatflawnote", UploadColumnName = "treatflawnote")]
        public string RejectReason { get; set; }

        /// <summary>
        /// 上报状态：未上报、正在上报、已上报
        /// </summary>
        public string ReportState { get; set; }

        /// <summary>
        /// 用户真实姓名
        /// </summary>
        [EntityMapping(ColumnName = "sysfille", UploadColumnName = "sysfille")]
        public string RealName { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        [EntityMapping(ColumnName = "sysfilldept", UploadColumnName = "sysfilldept")]
        public string UnitName { get; set; }

        /// <summary>
        /// 所属用户
        /// </summary>
        public string UserName { get; set; }

    }
}
